package com.lst.api.runner;

import com.lst.api.config.SecretConfig;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.context.annotation.Configuration;

/**
 * 配置类
 *
 * @author: Frank
 * @date: 2019/09/24 13:51
 * @version: V1.0
 */
@Configuration
public class LhtRunner implements CommandLineRunner {

    @Autowired
    private SecretConfig secretConfig;

    @Override
    public void run(String... args) throws Exception {
        secretConfig.createAccessTokenKey();
    }
}
